package com.onlineMIS.ORM.entity.headQ.finance;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;


public class FinanceCategory implements Serializable{

	private static final long serialVersionUID = -8852583637495149815L;
	//系统账目类型
	public static final int PREPAY_ACCT_TYPE = 3;//预收款账户 (客户)
	public static final int INCREASE_DECREASE_ACCT_TYPE = 4;//应收账户 （客户）
	public static final int PREPAY_ACCT_SUPPLIER_TYPE = 7;//预付款账户 （供应商）
	public static final int INCREASE_DECREASE_ACCT_SUPPLIER_TYPE = 9;//应付账户 （供应商）
	//账目初始金额
	public static String ZERO_MONEY = "0";//金额为0
	//转账
	public static final int  SUPPORT_TRANSFER_ACCOUNTS = 1;//支持转账
	public static final int  NO_SUPPORT_TRANSFER_ACCOUNTS = 0;//不支持转账
	//账目状态
	public static final int NORMAL_STATUS = 0;//正常
	public static final int ABNORMAL_STATUS = 1;//停用
	//账目类型
	public static final int CATEGORY_TYPE_CUST = 0;//客户财务单据
	public static final int CATEGORY_TYPE_SUPPLIER = 1;//供应商财务单据
	public static final int CATEGORY_TYPE_INSTITUTION = 2;//机构转账
	public static final int CATEGORY_TYPE_HQ = 3;//总部费用
	//账目流水归属
	public static final String ACCOUNT_TYPE_NAME_CUST = "客户账目";
	public static final String ACCOUNT_TYPE_NAME_SUPPLIER = "供应商账目";
	public static final String ACCOUNT_TYPE_NAME_HQ = "总部账目";
	//账目归属
	public static final int BELONG_TO_QX = 0;//千禧
	public static final int BELONG_TO_XLC = 1;//禧乐仓
	//账目类型
	public static final int BELONG_TO_SYSTEM = 0;//归属-系统
	public static final int BELONG_TO_HQ = 1;//归属-总部
	//map集合
	private static HashMap<Integer, String> belongToMap = new HashMap<Integer, String>();
	private static HashMap<Integer, String> belongTo2Map = new HashMap<Integer, String>();		
	protected Map<Integer, String> statusMap = new LinkedHashMap<Integer, String>();
	protected Map<Integer, String> transferMap = new LinkedHashMap<Integer, String>();
	
	{		
		statusMap.put(NORMAL_STATUS, "正常");
		statusMap.put(ABNORMAL_STATUS, "停用");
		
		transferMap.put(NO_SUPPORT_TRANSFER_ACCOUNTS, "不支持");
		transferMap.put(SUPPORT_TRANSFER_ACCOUNTS, "支持");
		
		belongToMap.put(FinanceCategory.BELONG_TO_SYSTEM, "系统");
		belongToMap.put(FinanceCategory.BELONG_TO_HQ, "总部");

		belongTo2Map.put(FinanceCategory.BELONG_TO_QX, "千禧");
		belongTo2Map.put(FinanceCategory.BELONG_TO_XLC, "禧乐仓");
	}

	private int id;
	private String itemName;
	private int type;//type 用来区分系统账户和用户创建账户,当前3,4,7为系统账户
	private double initialAmt;//初始金额
	private int status;
	private int isTransferAccounts;//是否转账账户
	private int sort;//排序
	private int belongTo;//账目类型
	private int belongTo2;//账目归属
	private String createBy;
	private Date createTime;	
	private String lastUpdateBy;
	private Date lastUpdateTime;
	private String comment;
	
	public int getBelongTo2() {
		return belongTo2;
	}
	public void setBelongTo2(int belongTo2) {
		this.belongTo2 = belongTo2;
	}
	public int getIsTransferAccounts() {
		return isTransferAccounts;
	}
	public void setIsTransferAccounts(int isTransferAccounts) {
		this.isTransferAccounts = isTransferAccounts;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public double getInitialAmt() {
		return initialAmt;
	}
	public void setInitialAmt(double initialAmt) {
		this.initialAmt = initialAmt;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getItemName() {
		return itemName;
	}
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getLastUpdateBy() {
		return lastUpdateBy;
	}
	public void setLastUpdateBy(String lastUpdateBy) {
		this.lastUpdateBy = lastUpdateBy;
	}
	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}
	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public Map<Integer, String> getStatusMap() {
		return statusMap;
	}
	public void setStatusMap(Map<Integer, String> statusMap) {
		this.statusMap = statusMap;
	}
	public Map<Integer, String> getTransferMap() {
		return transferMap;
	}
	public void setTransferMap(Map<Integer, String> transferMap) {
		this.transferMap = transferMap;
	}
	public int getSort() {
		return sort;
	}
	public void setSort(int sort) {
		this.sort = sort;
	}
	public int getBelongTo() {
		return belongTo;
	}
	public void setBelongTo(int belongTo) {
		this.belongTo = belongTo;
	}
	public static HashMap<Integer, String> getBelongToMap() {
		return belongToMap;
	}
	public static void setBelongToMap(HashMap<Integer, String> belongToMap) {
		FinanceCategory.belongToMap = belongToMap;
	}
	public static HashMap<Integer, String> getBelongTo2Map() {
		return belongTo2Map;
	}
	public static void setBelongTo2Map(HashMap<Integer, String> belongTo2Map) {
		FinanceCategory.belongTo2Map = belongTo2Map;
	}
		
}
